module skins add and submodule skin database to work with api
This commit is contained in:
parent
bd5afb5078
commit
385354abb3
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "public/skins"]
|
||||||
|
path = public/skins
|
||||||
|
url = https://codeberg.org/minetest-stuffs/minetest-skindb-skindata
|
13
controllers/skins.php
Normal file
13
controllers/skins.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
/**!
|
||||||
|
* @package minenux-skindb-webdb
|
||||||
|
* @filename api/api.php controller
|
||||||
|
* @route >api
|
||||||
|
* @version 1.0
|
||||||
|
*/
|
||||||
|
class skins_controller extends controller {
|
||||||
|
|
||||||
|
public function execute() {
|
||||||
|
$this->model->show();
|
||||||
|
}
|
||||||
|
}
|
18
models/skins.php
Normal file
18
models/skins.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
/**!
|
||||||
|
* @package minenux-skindb-webdb
|
||||||
|
* @filename index.php model
|
||||||
|
* @route >index
|
||||||
|
* @version 1.0
|
||||||
|
*/
|
||||||
|
class skins_model extends model {
|
||||||
|
|
||||||
|
public function notFound() {
|
||||||
|
$this->borrow('notFound')->show();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function show() {
|
||||||
|
$httpcode = 200;
|
||||||
|
include(DIR_VIEWS."index.php");
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
[public]
|
[public]
|
||||||
page[] = "index"
|
page[] = "index"
|
||||||
page[] = "lists"
|
page[] = "lists"
|
||||||
|
page[] = "skins"
|
||||||
page[] = "api/api"
|
page[] = "api/api"
|
||||||
page[] = "api/v1/lists"
|
page[] = "api/v1/lists"
|
||||||
page[] = "api/v1/store"
|
page[] = "api/v1/store"
|
||||||
|
1
public/skins
Submodule
1
public/skins
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 326de6b259361ec8ae184ba0bb16a0ef50efa31b
|
Loading…
x
Reference in New Issue
Block a user