1
0
Fork 0
mirror of synced 2024-05-20 12:42:39 +12:00

fix: remove manifest endpoint

This commit is contained in:
Torsten Dittmann 2022-11-15 16:30:53 +01:00
parent 5db924627a
commit 1b533daeaa
2 changed files with 0 additions and 45 deletions

View file

@ -566,32 +566,6 @@ App::error()
);
});
App::get('/manifest.json')
->desc('Progressive app manifest file')
->label('scope', 'public')
->label('docs', false)
->inject('response')
->action(function (Response $response) {
$response->json([
'name' => APP_NAME,
'short_name' => APP_NAME,
'start_url' => '.',
'url' => 'https://appwrite.io/',
'display' => 'standalone',
'background_color' => '#fff',
'theme_color' => '#f02e65',
'description' => 'End to end backend server for frontend and mobile apps. 👩‍💻👨‍💻',
'icons' => [
[
'src' => 'images/favicon.png',
'sizes' => '256x256',
'type' => 'image/png',
],
],
]);
});
App::get('/robots.txt')
->desc('Robots.txt File')
->label('scope', 'public')

View file

@ -51,25 +51,6 @@ class HTTPTest extends Scope
// $this->assertEquals('dev', $response['body']['version']);
}
public function testManifest()
{
/**
* Test for SUCCESS
*/
$response = $this->client->call(Client::METHOD_GET, '/manifest.json', \array_merge([
'origin' => 'http://localhost',
'content-type' => 'application/json',
]), []);
$this->assertEquals(200, $response['headers']['status-code']);
$this->assertEquals('Appwrite', $response['body']['name']);
$this->assertEquals('Appwrite', $response['body']['short_name']);
$this->assertEquals('.', $response['body']['start_url']);
$this->assertEquals('.', $response['body']['start_url']);
$this->assertEquals('https://appwrite.io/', $response['body']['url']);
$this->assertEquals('standalone', $response['body']['display']);
}
public function testHumans()
{
/**