Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 50d8bdb

Browse files
author
Jamie Snape
committed
Forward /api/rest to /api/json
Although, note that /api/json and /api/rest are both deprecated.
1 parent 3fc50e5 commit 50d8bdb

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
/*=========================================================================
3+
MIDAS Server
4+
Copyright (c) Kitware SAS. 26 rue Louis Guérin. 69100 Villeurbanne, FRANCE
5+
All rights reserved.
6+
More information http://www.kitware.com
7+
8+
Licensed under the Apache License, Version 2.0 (the "License");
9+
you may not use this file except in compliance with the License.
10+
You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0.txt
13+
14+
Unless required by applicable law or agreed to in writing, software
15+
distributed under the License is distributed on an "AS IS" BASIS,
16+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
See the License for the specific language governing permissions and
18+
limitations under the License.
19+
=========================================================================*/
20+
21+
/**
22+
* Rest controller for the api module.
23+
*
24+
* @deprecated
25+
*/
26+
class Api_RestController extends Api_AppController
27+
{
28+
/** Pre dispatch. */
29+
public function preDispatch()
30+
{
31+
$this->forward('json', 'index', 'api', $this->getAllParams());
32+
parent::preDispatch();
33+
}
34+
}

0 commit comments

Comments
 (0)