fix: remove manifest endpoint
This commit is contained in:
parent
5db924627a
commit
1b533daeaa
|
@ -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')
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue