module skins add and submodule skin database to work with api

main
mckaygerhard 2024-04-24 17:56:54 -04:00
parent bd5afb5078
commit 385354abb3
5 changed files with 36 additions and 0 deletions

3
.gitmodules vendored Normal file
View 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
View 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
View 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");
}
}

View File

@ -1,6 +1,7 @@
[public]
page[] = "index"
page[] = "lists"
page[] = "skins"
page[] = "api/api"
page[] = "api/v1/lists"
page[] = "api/v1/store"

1
public/skins Submodule

@ -0,0 +1 @@
Subproject commit 326de6b259361ec8ae184ba0bb16a0ef50efa31b